* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.mainButton {
  background-color: #0091ff;
  /* Green */
  border: none;
  color: white;
  padding: 5px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px;
  cursor: pointer;
  border-radius: 4px;
  /* 添加圆角 */
  font-weight: 500;
  /* 增加字体粗细 */
  transition: all 0.3s ease;
  /* 添加过渡效果 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  /* 添加阴影 */
  position: relative;
  overflow: hidden;
}

.mainButton:hover {
  background-color: #0055ff;
  /* 悬停时颜色变深 */
  transform: translateY(-2px);
  /* 悬停时上移 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* 悬停时阴影加深 */
}

.errorButton {
  background-color: #ff4800;
  /* Green */
  border: none;
  color: white;
  padding: 5px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px;
  cursor: pointer;
  border-radius: 4px;
  /* 添加圆角 */
  font-weight: 500;
  /* 增加字体粗细 */
  transition: all 0.3s ease;
  /* 添加过渡效果 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  /* 添加阴影 */
  position: relative;
  overflow: hidden;
}

.errorButton:hover {
  background-color: #ff0000;
  /* 悬停时颜色变深 */
  transform: translateY(-2px);
  /* 悬停时上移 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* 悬停时阴影加深 */
}

.mainButton:active,
.errorButton:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mainButton::after,
.errorButton::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.mainButton:active::after .errorButton:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}